package com.tmeone.erpone.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tmeone.erpone.entity.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tmeone.erpone.entity.Customer;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tmeone
 * @since 2021-04-19
 */
public interface CustomerMapper extends BaseMapper<Customer> {

    //分页方法
    IPage<Customer> selectCustomerPage(Page<Customer> page);
    //根据关键字查询客户
    List<Customer> findCustomerByKey(String key);
}
